package com.example.zhongshuishi.mapper;


import com.example.zhongshuishi.entity.PersonnelDto;
import com.example.zhongshuishi.entity.StudentDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PersonnelMapper {

    // 新增学生

    int insert(PersonnelDto personnelDto);

    // 根据ID删除学生
 //   @Delete("DELETE FROM stu_infor WHERE id = #{id}")
    int deleteById(String id);

    int update(PersonnelDto personnelDto);

    PersonnelDto selectById(String id);

    List<PersonnelDto> selectByParentId(Integer parentId);

    public PersonnelDto selectByPhone(String phone);
}
